package visitor;

public class Keyboard implements ComputerPart {

    @Override
    public void add(ComputerPart computerPart) {
        throw new UnsupportedOperationException();
    }

    @Override
    public void accept(Visitor visitor) {
        visitor.visit(this);
    }

    @Override
    public void display() {
        System.out.println("keyboard");
    }
}
